﻿Public Class AnnuncioDTO
    Private xid As Guid = Nothing
    Private xriferimento As String = String.Empty
    Private xtitolo As String = String.Empty
    Private xdescrizione As String = String.Empty
    Private xcondizione As String = String.Empty
    Private xtipocontratto As String = String.Empty
    Private xtipoimmobile As String = String.Empty
    Private xcomune As String = String.Empty
    Private xpubblicatoda As String = String.Empty
    Private xindirizzo As String = String.Empty
    Private xcap As Integer = 0
    Private xdatapubblicazione As Date = Nothing
    Private xmq As Integer = 0
    Private xvani As Integer = 0
    Private xbagni As Integer = 0
    Private xannofabbricazione As Integer = 0
    Private xtermoautonomo As Boolean = False
    Private xpiano As Integer = 0
    Private xnote As String = String.Empty
    Private xprezzo As Double = 0
    Public Sub New()

    End Sub
    Public Sub New(ByVal _id As Guid, ByVal _titolo As String, ByVal _descrizione As String, ByVal _condizione As String, _
                   ByVal _tipocontratto As String, ByVal _tipoimmobile As String, ByVal _comune As String, ByVal _pubblicatoda As String, ByVal _indirizzo As String, _
                   ByVal _cap As Integer, ByVal _datapubblicazione As Date, ByVal _mq As Integer, ByVal _vani As Integer, ByVal _bagni As Integer, ByVal _annofabbricazione As Integer, _
                   ByVal _termoautonomo As Boolean, ByVal _piano As Integer, ByVal _note As String, ByVal _prezzo As Double, ByVal _riferimento As String)
        Me.ID = _id
        Me.Titolo = _titolo
        Me.Descrizione = _descrizione
        Me.Condizione = _condizione
        Me.TipoContratto = _tipocontratto
        Me.TipoImmobile = _tipoimmobile
        Me.Comune = _comune
        Me.PubblicatoDa = _pubblicatoda
        Me.Indirizzo = _indirizzo
        Me.CAP = _cap
        Me.DataPubblicazione = _datapubblicazione
        Me.MQ = _mq
        Me.Vani = _vani
        Me.Bagni = _bagni
        Me.AnnoFabbricazione = _annofabbricazione
        Me.TermoAutonomo = _termoautonomo
        Me.Piano = _piano
        Me.Note = _note
        Me.Prezzo = _prezzo
        Me.Riferimento = _riferimento
    End Sub
    Public Property ID() As Guid
        Get
            Return xid
        End Get
        Set(ByVal value As Guid)
            xid = value
        End Set
    End Property
    Public Property Titolo() As String
        Get
            Return xtitolo
        End Get
        Set(ByVal value As String)
            xtitolo = value
        End Set
    End Property
    Public Property Descrizione() As String
        Get
            Return xdescrizione
        End Get
        Set(ByVal value As String)
            xdescrizione = value
        End Set
    End Property
    Public Property Condizione() As String
        Get
            Return xcondizione
        End Get
        Set(ByVal value As String)
            xcondizione = value
        End Set
    End Property
    Public Property TipoContratto() As String
        Get
            Return xtipocontratto
        End Get
        Set(ByVal value As String)
            xtipocontratto = value
        End Set
    End Property
    Public Property TipoImmobile() As String
        Get
            Return xtipoimmobile
        End Get
        Set(ByVal value As String)
            xtipoimmobile = value
        End Set
    End Property
    Public Property Comune() As String
        Get
            Return xcomune
        End Get
        Set(ByVal value As String)
            xcomune = value
        End Set
    End Property
    Public Property PubblicatoDa() As String
        Get
            Return xpubblicatoda
        End Get
        Set(ByVal value As String)
            xpubblicatoda = value
        End Set
    End Property
    Public Property Indirizzo() As String
        Get
            Return xindirizzo
        End Get
        Set(ByVal value As String)
            xindirizzo = value
        End Set
    End Property
    Public Property CAP() As Integer
        Get
            Return xcap
        End Get
        Set(ByVal value As Integer)
            xcap = value
        End Set
    End Property
    Public Property DataPubblicazione() As Date
        Get
            Return xdatapubblicazione
        End Get
        Set(ByVal value As Date)
            xdatapubblicazione = value
        End Set
    End Property
    Public Property MQ() As Integer
        Get
            Return xmq
        End Get
        Set(ByVal value As Integer)
            xmq = value
        End Set
    End Property
    Public Property Vani() As Integer
        Get
            Return xvani
        End Get
        Set(ByVal value As Integer)
            xvani = value
        End Set
    End Property
    Public Property Bagni() As Integer
        Get
            Return xbagni
        End Get
        Set(ByVal value As Integer)
            xbagni = value
        End Set
    End Property
    Public Property AnnoFabbricazione() As Integer
        Get
            Return xannofabbricazione
        End Get
        Set(ByVal value As Integer)
            xannofabbricazione = value
        End Set
    End Property
    Public Property TermoAutonomo() As Boolean
        Get
            Return xtermoautonomo
        End Get
        Set(ByVal value As Boolean)
            xtermoautonomo = value
        End Set
    End Property
    Public Property Piano() As Integer
        Get
            Return xpiano
        End Get
        Set(ByVal value As Integer)
            xpiano = value
        End Set
    End Property
    Public Property Note() As String
        Get
            Return xnote
        End Get
        Set(ByVal value As String)
            xnote = value
        End Set
    End Property
    Public Property Prezzo() As Double
        Get
            Return xprezzo
        End Get
        Set(ByVal value As Double)
            xprezzo = value
        End Set
    End Property
    Public Property Riferimento() As String
        Get
            Return xriferimento
        End Get
        Set(ByVal value As String)
            xriferimento = value
        End Set
    End Property
End Class
